<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>乐友首页-我的帖子</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/css/see/reset.min.css">
    <link rel="stylesheet" href="/css/friend/myPost.min.css?v=<%=$version%>">
</head>
<body>
<div id="myPost" v-cloak>
    <div class="circleBar-top">
        <span class="goback" @click="getBack()"></span>
        我的帖子
        <span class="seeIndex-colse" @click="getNext()"></span>
    </div>
    <div class="myPost-tab clearfix">
        <span :class="{'active':value==1}" @click="getTab(1)">主贴</span>
        <span :class="{'active':value==2}" @click="getTab(2)">回帖</span>
    </div>
    <template v-if="value==1">
        <div class="myPost-cent1">
            <!--<h4 class="myPost-centTitle">2017</h4>-->
            <div class="dynamicList">
                <template v-for="item in myPostsList2">
                    <div class="dynamicList-list dynamicList-txt" v-if="item.type==1">
                        <div class="dynamicList-title">
                            <span class="title-headImg" :style="bgimg(item.headImg)"></span>
                            <strong>{{item.name}}</strong>
                            <p>{{item.createDate}}</p>
                            <span class="title-more" @click="getIsScreen(1,item.postId)"></span>
                        </div>
                        <!--<h6>{{item.title}}</h6>-->
                        <div class="myPost-postCent" v-html="item.content.replace(/\r\n/g,'<br>')"></div>
                        <div class="dynamicList-txtCent" v-if="item.model==1">
                            <span :style="bgimg(item.coverImgSrc)"></span>
                            <div>{{item.title}}</div>
                        </div>
                        <div class="dynamicList-ImgCent clearfix" v-if="item.imgList">
                            <span v-for="list in item.imgList" :style="bgimg(list)"></span>
                            <!--<span></span>-->
                            <!--<span></span>-->
                        </div>
                        <div class="buttImg-butt clearfix">
                            <a>
                                <span class="discount-spsre">分享</span>
                            </a>
                            <a>
                                <span class="dynamicList-comme" @click="getCommentInfo(item)">{{item.commitCount}}</span>
                            </a>
                            <a>
                                <span class="dynamicList-dianz">{{item.praiseCount}}</span>
                            </a>
                        </div>
                    </div>
                    <div class="dynamicList-list" v-if="item.type==2">
                        <div class="dynamicList-title">
                            <span class="title-headImg" :style="bgimg(item.headImg)"></span>
                            <strong>{{item.name}}</strong>
                            <p>{{item.createDate}}</p>
                            <span class="title-more" @click="getIsScreen(1,item.postId)"></span>
                        </div>
                        <h6>转发帖子</h6>
                        <div class="dynamicList-txtCent">
                            <span :style="bgimg(item.coverImgSrc)"></span>
                            <div>{{item.title}}</div>
                        </div>
                        <!--<div class="dynamicList-ImgCent clearfix">-->
                            <!--<span></span>-->
                            <!--<span></span>-->
                            <!--<span></span>-->
                        <!--</div>-->
                        <div class="buttImg-butt clearfix">
                            <a>
                                <span class="discount-spsre">分享</span>
                            </a>
                            <a>
                                <span class="dynamicList-comme" @click="getCommentInfo(item)">{{item.commitCount}}</span>
                            </a>
                            <a>
                                <span class="dynamicList-dianz">{{item.praiseCount}}</span>
                            </a>
                        </div>
                    </div>
                    <div class="dynamicList-list dynamicList-txt" v-if="item.type==3">
                        <div class="dynamicList-title">
                            <span class="title-headImg" :style="bgimg(item.headImg)"></span>
                            <strong>{{item.name}}</strong>
                            <p>{{item.createDate}}</p>
                            <span class="title-more" @click="getIsScreen(1,item.postId)"></span>
                        </div>
                        <h6>转发帖子</h6>
                        <div class="dynamicList-txtCent">
                            <span :style="bgimg(item.coverImgSrc)"></span>
                            <div>{{item.title}}</div>
                        </div>
                        <div class="buttImg-butt clearfix">
                            <a>
                                <span class="discount-spsre">分享</span>
                            </a>
                            <a>
                                <span class="dynamicList-comme" @click="getCommentInfo(item)">{{item.commitCount}}</span>
                            </a>
                            <a>
                                <span class="dynamicList-dianz">{{item.praiseCount}}</span>
                            </a>
                        </div>
                    </div>
                    <!--<div class="dynamicList-list dynamicList-txt">-->
                        <!--<div class="dynamicList-title">-->
                            <!--<span class="title-headImg"></span>-->
                            <!--<strong>{睡觉觉.}}</strong>-->
                            <!--<p>{睡觉觉.}}</p>-->
                            <!--<span class="title-more"></span>-->
                        <!--</div>-->
                        <!--<h6>分享帖子</h6>-->
                        <!--<div class="dynamicList-txtCent">-->
                            <!--&lt;!&ndash;<span></span>&ndash;&gt;-->
                            <!--<div>{.睡觉觉}}</div>-->
                        <!--</div>-->
                        <!--<div class="buttImg-butt clearfix">-->
                            <!--<a>-->
                                <!--<span class="discount-spsre">分享</span>-->
                            <!--</a>-->
                            <!--<a>-->
                                <!--<span class="dynamicList-comme">12</span>-->
                            <!--</a>-->
                            <!--<a>-->
                                <!--<span class="dynamicList-dianz">45</span>-->
                            <!--</a>-->
                        <!--</div>-->
                    <!--</div>-->
                </template>
            </div>
        </div>
    </template>
    <template v-if="value==2">
        <div class="myPost-cent">
            <div class="myPost-list" v-for="item in friendDynamic2">
                <template v-for="(list,index) in item.comments">
                    <div class="myPost-listCent" :class="{'myPost-listCent1':index==0}" v-if="list.ruserId&&list.userName">
                        <h6>回复：回复 {{list.userName}}：{{item.content}}</h6>
                        <p>2018.05.21 10:20</p>
                    </div>
                    <div class="myPost-listCent" :class="{'myPost-listCent1':index==0}" v-else>
                        <h6>回复：{{list.content}}</h6>
                        <p>{{list.createDate}}</p>
                    </div>
                </template>
                <div class="listCent-div">
                    <span>{{item.title}}</span>
                </div>
            </div>
            <!--<div class="myPost-list">-->
                <!--<div class="myPost-listCent">-->
                    <!--<h6>回复：回复 韩小薰：谢谢</h6>-->
                    <!--<p>2018.05.21 10:20</p>-->
                <!--</div>-->
                <!--<div class="myPost-listCent1">-->
                    <!--<h6>回复：回复 韩小薰：谢谢</h6>-->
                    <!--<p>2018.05.21 10:20</p>-->
                <!--</div>-->
                <!--<div class="listCent-div">-->
                    <!--<span>简单快乐飞机上来看荆防颗粒时代峻峰</span>-->
                <!--</div>-->
            <!--</div>-->
        </div>
    </template>
    <div class="loadtip" v-if="loadFlag"></div>
    <div id="mask1" :class="{'maskShow':isScreen}"></div>
    <div id="isClose" :class="{'maskShow':isScreen==1}">
        <span @click="getIsClassify(1)">删除</span>
        <span @click="getIsScreen()">取消</span>
    </div>
    <pop-view v-show="pop.show" @on="getIsClassify()" :question="pop.question" @ok="deletePost()"></pop-view>
    <prompt-view ref="prompt"></prompt-view>
</div>
<script src='/plugins/js/jquery-1.11.3.min.js'></script>
<script type="text/javascript" src="/plugins/js/vue.min.js"></script>
<script type="text/javascript" src="/js/friend/myPost.js?v=<%=$version%>"></script>

</body>
</html>